package com.campus.mapper;

import com.campus.pojo.po.ClassInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClassMapper {
    @Select("select id, name, major_id from class_info where major_id = #{id}")
    List<ClassInfo> getClassByMajorId(Integer id);
}
